Write-Host "=== 数据库数据验证 ===" -ForegroundColor Green
Write-Host "正在连接MySQL数据库..." -ForegroundColor Yellow

# 运行MySQL查询并捕获输出
$output = mysql -u root -p springbootjlvpc -e "SELECT '企业数据:' AS Type, COUNT(*) AS Count FROM qiyexinxi UNION ALL SELECT '求职者数据:' AS Type, COUNT(*) AS Count FROM qiuzhizhexinxi;"

Write-Host "查询结果:" -ForegroundColor Cyan
Write-Host $output -ForegroundColor White

Write-Host "=== 验证完成 ===" -ForegroundColor Green
Start-Sleep -Seconds 5